package com.wlx.gateway.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * 放行白名单配置
 *
 * @author wlx
 */
@Configuration
@RefreshScope
@ConfigurationProperties(prefix = "ignore")
public class IgnoreWhiteProperties {
    /**
     * 后台放行白名单配置，网关不校验此处的白名单
     */
    private List<String> sysWhites = new ArrayList<>();

    /**
     * 门户拦截的名单
     */
    private List<String> portalFilters = new ArrayList<>();
    /**
     * 短信下发拦截名单
     */
    private List<String> sendFilters = new ArrayList<>();


    public List<String> getSysWhites() {
        return sysWhites;
    }

    public void setSysWhites(List<String> sysWhites) {
        this.sysWhites = sysWhites;
    }


    public List<String> getPortalFilters() {
        return portalFilters;
    }

    public void setPortalFilters(List<String> portalFilters) {
        this.portalFilters = portalFilters;
    }

    public List<String> getSendFilters() {
        return sendFilters;
    }

    public void setSendFilters(List<String> sendFilters) {
        this.sendFilters = sendFilters;
    }
}
